473,425 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,425 software developers and data experts.

Overlapping Dropdown Menu

Hi,
I am using auto suggest drop down menu..by using div tags and css.. below that i have navigation bar by using list items..
when i search in auto suggest the results are display behind the navigation bar...
what can i do....anyone help me ..
Expand|Select|Wrap|Line Numbers
  1. this is for auto suggest css
  2.  
  3. #auto li{padding:0; margin:0px 0px 0px 15px; border:0; list-style:none; position:absolute;}
  4.  
  5. and this for navigation section:
  6. .groupItem .itemHeader
  7. {
  8.     line-height: 23px;
  9.     background-color:#541C03;
  10.     color: #000;
  11.     padding: 0 0px;
  12.  
  13.     font-weight: bold;
  14.     font-size: 16px;
  15.     height: 23px;
  16.     position: relative;
  17. }
  18.  
  19. .groupItem .itemHeader a
  20. {
  21.     position: absolute;
  22.     right: 30px;
  23.     top: 0px;
  24.     font-weight: normal;
  25.     font-size: 11px;
  26.     text-decoration: none;
  27. }
  28. .cross
  29. {
  30.     position: absolute;
  31.     right: 10px;
  32.     top: 0px;
  33.     font-weight: bold;
  34.     font-size: 11px;
  35.     text-decoration: none;
  36.     cursor:pointer;
  37. }
  38.  
  39.  
Aug 28 '08 #1
5 8659
Dormilich
8,658 Expert Mod 8TB
I don't know, whether the problem is caused by this, but I recommend _always_ defining top/bottom, left/right properties when using position: absolute/relative (like the first two clauses).
Aug 28 '08 #2
Markus
6,050 Expert 4TB
Maybe giving the auto-suggest a z-index would help.
Aug 28 '08 #3
I don't know, whether the problem is caused by this, but I recommend _always_ defining top/bottom, left/right properties when using position: absolute/relative (like the first two clauses).
Hi,
i applied the properties that u mention... but still i am getting the same problem
Aug 28 '08 #4
Maybe giving the auto-suggest a z-index would help.
hi,
u told about z-index, where can i put that ...?? i don't know how to apply that..can u explain ( i saw in w3 schools but still i get confused )
Aug 28 '08 #5
Dormilich
8,658 Expert Mod 8TB
hi,
u told about z-index, where can i put that ...?? i don't know how to apply that..can u explain ( i saw in w3 schools but still i get confused )
It's handled like any other property, e.g.
Expand|Select|Wrap|Line Numbers
  1. #auto li {
  2.   /* your definitions here */
  3.   z-index: 20;
  4. }
  5.  
  6. .groupitem {
  7.   /* your definitions here */
  8.   z-index: 10;
  9. }
this should force the browser to draw li above/on top of .groupitem (due to the higher z-index).

Basicly z-index is something like stacking height and in the end you look from above to (more or less) overlapping elements having the ones with lower z-indices beneath the other ones.

note: you can even use z-indices in the range of 1000 an more, only question is, whether this is useful or not (there you have to make your own experiences)
Aug 28 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: LG | last post by:
I have asked before but I did not get all the answer I wanted. Perhaps I explained too bad. I have my site in frames, and the dropdown list is in the 'left' frame, and I have used javascript so...
1
by: Dino Buljubasic | last post by:
Hi, I have a toolbar with several buttons on it, one of which is set up to be as a DropDown button. I also have a context menu with menu items assigend to it so when I click that button, my...
0
by: Edwin Knoppert | last post by:
I'm busy with overlapping controls, like the ASP net menu shown underneat the listbox control etc.. Absolute position is what i use in this case, no issue to me now. I found a menu on the...
4
torquehero
by: torquehero | last post by:
Hi all :) I have created a horizontal navbar using Xara Menumaker. The Menu items have several dropdown menus. Its a javascript. When the mouse cursor is moved over any menu item, a dropdown...
2
by: William Youngman | last post by:
We are developing an application that presents data to the user in a gridview and we are using the dropdown extender to give the user a SharePoint 2007 type dropdown menu attached to the cells of a...
7
by: Terry | last post by:
Hi again folks. I have a couple of issues now. I am not sure why I can't get my menu to overlap the content area. I tried using z-index. The effect I want occurs in Firefox but not IE. ...
1
by: redgoals | last post by:
Hi, I have searched the forum for a similar problem but have been unable to find anything. What i am trying to achieve is a dropdown menu which behaves in the following way: 1, Someone...
19
by: Jim | last post by:
Hi, I have two questions/problems pertaining to CSS horizontal dropdown menus and am hoping that someone here can help me out. (1) I'm having a problem centering the menu. I picked up the...
2
by: Liam Gibbs | last post by:
Hello everyone. I'm having a problem with a web page. What I have is one DIV (a header) overlapping the border around another DIV (a menu block). I want this, because I want to put this header...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.